package cn.sw.api.file;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

@FeignClient(name = "cloud-file",contextId = "file_id")
@RequestMapping("/file")
public interface MinioDemoApi {

    @PostMapping("/upload")
    public String uploadFile(@RequestParam("file") MultipartFile file);

}
